import RegExp from './RegExp'
import Fun from './Fun'
import {
	post,
	get,
	postFile
} from './Http'
import {
	DateFormat
} from './DateUtil'

import Conf from '../conf'

const install = function(Vue, options) {
	Vue.$RegExp = Vue.prototype.$RegExp = RegExp;
	Vue.$Fun = Vue.prototype.$Fun = Fun;
	Vue.$DateFormat = Vue.prototype.$DateFormat = DateFormat;

	Vue.post = Vue.prototype.post = post;
	Vue.get = Vue.prototype.get = get;
	Vue.postFile = Vue.prototype.postFile = postFile;

	Vue.$Conf = Vue.prototype.$Conf = Conf;
}

export default {
	install
}
